package com.sc.nft.entity.vo;

import com.sc.nft.enums.ExpenditureRecordTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class AdminRankingBoardIncomeDetailsVO {

    @ApiModelProperty(value = "收益类型 RANKING_BOARD_INCOME:持仓排名激励   IP_MALL_RANKING_BOARD_INCOME:IP商城交易激励", required = true)
    @NotNull(message = "收益类型不能为空")
    private ExpenditureRecordTypeEnum expenditureRecordTypeEnum;

    @ApiModelProperty(value = "开始区间", required = true)
    @NotNull(message = "开始区间不能为空")
    @Range(min = 0, max = 199, message = "开始区间最小值为0，最大值为199")
    private Integer beginSection;

    @ApiModelProperty(value = "结束区间", required = true)
    @NotNull(message = "结束区间不能为空")
    @Range(min = 1, max = 200, message = "结束区间最小值为0，最大值为200")
    private Integer endSection;

    @ApiModelProperty(value = "收益名称", required = true)
    @NotNull(message = "收益名称不能为空")
    private String incomeName;

    @ApiModelProperty(value = "收益比例", required = true)
    @NotNull(message = "收益比例不能为空")
    private BigDecimal incomeProportion;
}
